package com.ssy.lingxi.system.dto.request;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 添加权限菜单请求实体类
 *
 * @author wrc
 * @date 2020/5/11
 */
public class MiddlegroundMenuAddRequest {

    /**
     * 菜单名称
     */
    @NotNull
    @ApiModelProperty(value = "菜单名称",required = true)
    private String menuName;

    /**
     * 前端URL
     */
    @ApiModelProperty(value = "菜单链接",required = true)
    private String url;

    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID")
    private Long parentId=0L;


    /**
     * 菜单描述
     */
    @ApiModelProperty(value = "菜单描述",required = true)
    private String menuDescribe;
    /**
     * 排序值
     */
    @ApiModelProperty(value = "排序值",required = true)
    private Integer sort;

    @ApiModelProperty("按钮集合")
    List<ButtonAddRequest> buttons;

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMenuDescribe() {
        return menuDescribe;
    }

    public void setMenuDescribe(String menuDescribe) {
        this.menuDescribe = menuDescribe;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<ButtonAddRequest> getButtons() {
        return buttons;
    }

    public void setButtons(List<ButtonAddRequest> buttons) {
        this.buttons = buttons;
    }
}
